{extend name='main'}

{block name="button"}

{if auth("add")}
<button data-open='{:url("add")}' data-title="添加报名" class='layui-btn layui-btn-sm layui-btn-primary' >添加报名</button>
{/if}

<!--style ="VISIBILITY: hidden"  隐藏属性-->
{if auth("remove")}
<button  data-action='{:url("remove")}' data-csrf="{:systoken('remove')}" data-rule="id#{key}" class='layui-btn layui-btn-sm layui-btn-primary'>删除报名</button>
{/if}

{if auth("add")}
<button data-open='{:url("/cms/eduwork/index")}' data-title="管理岗位及工种" class='layui-btn layui-btn-sm layui-btn-primary' >管理岗位及工种</button>
{/if}
{/block}
{block name="content"}
<div  class="think-box-shadow">
    {include file='eduenroll/index_search'}
    <table class="layui-table" lay-skin="line">
        {notempty name='list'}
        <thead>
        <tr>
            <th class='list-table-check-td think-checkbox'>
                <label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
            </th>
            <th class='layui-hide-xs'>报名号</th>
            <th class='layui-hide-xs'>培训名称</th>
            <th class='layui-hide-xs'>头像</th>
            <th class='layui-hide-xs'>学员姓名</th>
            <th class='layui-hide-xs'>学员电话</th>
            <th class='layui-hide-xs'>企业名称</th>
            <th class='layui-hide-xs'>班级与座位号</th>
            <th class='layui-hide-xs'>报名时间</th>
            <th class='layui-hide-xs'>操作</th>
        </tr>
        </thead>
        {/notempty}
        <tbody>
        {foreach $list as $key=>$vo}


        <tr  data-dbclick>
            <td class='list-table-check-td think-checkbox'>
                <label><input class="list-check-box" value='{$vo.id}' type='checkbox'></label>
            </td>
            <td class="nowrap">{$vo.no}</td>
            <td style="width:100px;">{$vo.class_name}</td>
            <td class="nowrap"><img style="width:24px;height:24px;" src="{$vo.avatar}" /></td>
            <td class="nowrap">{$vo.name}</td>
            <td class="nowrap">{$vo.phone}</td>
            <td style="width:100px;">{$vo.company}</td>
            <td style="width:100px;" class="nowrap">
                {$vo.room_no}<br />{if $vo.seat_no} 座位号：{/if}{$vo.seat_no}
            </td>
            <td class="nowrap">{$vo.occur_time}</td>
            <td  class='text-center nowrap notselect'>
                {if auth("edit")}
                {if $vo.class_status eq 1}
                <a data-title="修改报名信息" data-open='{:url("edit")}?id={$vo.id}'>修改报名信息</a>
                {else}
                <a class="layui-btn layui-btn-xs layui-btn-disabled">修改报名信息</a>
               {/if}
                <br />
                <a data-title="修改班级信息" data-modal='{:url("editgroup")}?id={$vo.id}'>修改班级信息</a>
                {/if}
            </td>
        </tr>

        {/foreach}
        </tbody>
    </table>
    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
</div>
{/block}


